/*
 * $Id: AbstractPendingChangelistsContainer.java 23 2002-09-29 13:59:30Z bpruessmann $
 *
 * Copyright (c) 2001 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 */
package net.sourceforge.p4eclipse.internal.ui.model;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.model.IWorkbenchAdapter;

/**
  * Abstract base class for ClientPendingChangelistsContainer and
  * OtherPendingChangelistsContainer.
  * 
  * @see		ClientPendingChangelistsContainer
  * @see		OtherPendingChangelistsContainer
  * @version 	$Revision: 23 $
  * @author		<a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  */
public abstract class AbstractPendingChangelistsContainer implements IWorkbenchAdapter, IAdaptable
{
	/** Only classes in this package can subclass this. */
	AbstractPendingChangelistsContainer() { }

	/** @see IWorkbenchAdapter#getImageDescriptor(Object) */
	public ImageDescriptor getImageDescriptor(Object object) { return null; }

	/** @see IWorkbenchAdapter#getParent(Object) */
	public Object getParent(Object o) { return null; }

	/** @see IAdaptable#getAdapter(Class) */
	public Object getAdapter(Class adapter) { return (adapter == IWorkbenchAdapter.class) ? this : null; }	
}
